package Snake;

import javax.swing.*;
import java.awt.*;

public class Snakestart {
    public static void main(String[] args) {
        JFrame frame = new JFrame("贪吃蛇大作战");
        frame.setVisible(true);
        frame.setBounds(10,10,900,720);
        frame.setResizable(false);//不可改变窗口大小
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        //游戏界面面板
        frame.add(new Gamepanel());
    }
}
